//=============================================================================
#ifndef __CAPPSTATEMANAGER_H__
	#define __CAPPSTATEMANAGER_H__

#include "AppState.h"
#include "Client.h"

//=============================================================================
// App States / Game States
enum {
	APPSTATE_NONE,
	APPSTATE_INTRO,
	APPSTATE_MENU,
	APPSTATE_GAME,
	APPSTATE_LOBBY,
	APPSTATE_SERVER,
	APPSTATE_CREDITS
};

//=============================================================================
class CAppStateManager {
	private:
		static CAppState* ActiveAppState;

	public:

		static void OnEvent(SDL_Event* Event);

		static int GetActiveAppStateInt();
		static int ActiveAppStateInt;

		static void OnLoop();

		static void OnRender(SDL_Surface* Surf_Display);

	public:
		static void SetActiveAppState(int AppStateID);
		static CAppState* GetActiveAppState();
};

//=============================================================================

#endif
